<template>
  <view class="Bigbox">
    <image :src="url" mode="widthFix" class="boxImg"></image>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        Query: '',
        url:''
      };
    },
    onLoad(option) {
      this.Query = option.goods_id
      console.log( this.Query);
      this.getSwiper()
    },
    methods: {
      async getSwiper() {
        const {data:res } = await uni.$http.get('/enter-lunbotu/'+ this.Query)
        console.log(res);
        if(res.code !== 200) {
          console.log("错误");
        }
        // this.swiperList = res.data
        this.url = res.data[0].photo
      },
    }
  }
</script>

<style lang="scss">
  .Bigbox {
    width: 100%;
    .boxImg {
      width: 100%;
    }
  }
</style>
